package com.shanyin.framework.feign.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shanyin.framework.common.base.ResponseData;

/***
 ** @category 请用一句话来描述其用途...
 ** @author qing.yunhui
 ** @email: 280672161@qq.com
 ** @createTime: 2018年5月30日下午3:40:51
 **/
@Component
@FeignClient(name="member-provider",fallback=UserFeignServiceImpl.class)// 这里的name指向的是服务提供者的服务名称
public interface UserFeignService {

	//在UserFeignService类添加指定 fallback 类，在服务熔断的时候返回 fallback 类中的内容。
	
	 @RequestMapping(value = "/member/sys/user/registered")
	 public ResponseData registered(@RequestParam("phone")String phone,@RequestParam("password")String password,@RequestParam("registerChannel")String registerChannel,@RequestParam("invitationCode")String invitationCode) ;
	 
	 @RequestMapping(value = "/member/sys/user/login")
	 public ResponseData login(@RequestParam("phone")String phone,@RequestParam("password")String password,@RequestParam("isPhone")boolean isPhone);
	 
}
